package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by liangweikang on 19/6/2.
 */
@Entity
@Data
@Table(name = "confirm")
@ApiModel(value = "ConfirmEntity", description = "甲方确认完成")
@DynamicInsert
@DynamicUpdate
public class ConfirmEntity {

    @Id
    @ApiModelProperty(value = "id")
    @Column(name = "id")
    private String id;

    @ApiModelProperty(value = "甲方id")
    @Column(name = "partya_id")
    private String partyaId;

    @ApiModelProperty(value = "乙方id")
    @Column(name = "partyb_id")
    private String partybId;

    @ApiModelProperty(value = "任务id")
    @Column(name = "task_id")
    private String taskId;

    @ApiModelProperty(value = "用户作品url")
    private String url;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "用户自我评价comment")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "拒绝 1 已拒绝 0 未拒绝")
    private int refused;

    private int finish;

    private int refund;
}
